package com.zjl.litemall.db.service;

import com.zjl.litemall.db.dao.LitemallOrderMapper;
import com.zjl.litemall.db.domain.LitemallOrderExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author cat
 * @description
 * @date 2022/2/25 下午10:29
 */
@Service
public class LitemallOrderService {

    @Resource
    private LitemallOrderMapper orderMapper;

    public int count() {
        LitemallOrderExample example = new LitemallOrderExample();
        example.or().andDeletedEqualTo(false);

        return (int) orderMapper.countByExample(example);
    }
}
